<html>
 <head>
	<title>[var.TITLE]</title>
	<link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
	<link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">	
	<script type="text/javascript" src="[var.ROOT_DIR]js/common.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>	
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsformgrid.php?session=[var.SessionVar]"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmasks.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsverify.php?session=[var.SessionVar]"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsinit.php?session=[var.SessionVar]"></script>	
	<script type="text/javascript" src="[var.ROOT_DIR]js/jquery.min.js"></script>
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
	<table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
		<tr>
			<td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
		</tr>
		<tr>
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
				<tr>
					<td background="[var.ROOT_IMG_DIR]/back-menu.gif">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td>
      			  				<script language="JavaScript" type="text/JavaScript">menu.Build();</script>
						  </td>
						  <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
						</tr>
					  </table>
					</td>
				</tr>
				
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
			</table>
			</td>
		</tr>
		<tr height="100%">
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
				<tr valign="top">
					<td width="100%">
						<table border="0" cellspacing="0" cellpadding="0" width="100%">			
							<tr>
								<td class="head-path"></td>
								<td class="corner-date">[var.CORNER_DATE]</td>
							</tr>
						</table>
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="FacetHeaderContent" >.:[var.SubHeaderTitle]:.</td>
							</tr>
						</table>
						
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="contentTitle">
								Menu
								</td>
							</tr>
							<tr>
								<td class="content2">
								<table cellspacing="2" cellpadding="0">
								 <tr>
								   <td>
								    <input type="button" name="Action" value="<<Back" class="button" onClick="self.location.replace('[sys.script_name]')">
								   </td>
                                                                                   <td>
								     <input type="button" name="Action" value="Done" class="button" onClick="self.location.replace('[var.SERVER_URL]')">
								   </td>
								 </tr>
								</table>
								</td>
							</tr>
							<tr>
								<td class="content2">
						<!-- FORM SECTION -->
						<table border="0" cellspacing="0" cellpadding="0">
				
						<form method="post" action="[var.FormAction]" name="[var.HTMLFormName]" >
							  <tr>
							    <td class="fieldCaption" align="right">Project ID</td>
							    <td class="fieldCaption">:</td>
							    <td class="fieldCaption">									
								    [tbs_check;htmlconv=no;if [var.FormMode]=Edit;then 
									'<input type="text" name="project_id" value="[blv.project_id;noerr]" maxlength="255" size="10" onblur="[var.InitFunction]" onkeyup="this.value=this.value.toUpperCase()" class="input" "readonly">'
									;else 'AUTO NUMBERED BY SYSTEM']
							    </td> 
							    <!--<td class="fieldCaption"><input type="text" name="(bln.project_id)" value="[blv.project_id;noerr]" maxlength="255" size="10" onblur='[var.InitFunction]' onkeyup="this.value=this.value.toUpperCase()" class="input" [tbs_check;if [var.FormMode]=Edit;then 'readonly';else '']></td>-->
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Project Name</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption"><input type="text" name="project_name" value="[blv.project_name;noerr]" maxlength="255" size="25" class="input"></td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Est. Start Date</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption">
							        							        
							        <input type="text" name="start_date"  maxlength="255" size="25" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [blv.start_date;frm='dd/mm/yyyy';noerr]; else [sys.now;frm='dd/mm/yyyy']]" maxlength="255" size="10" class="input" >
									<a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].start_date);return false;" hidefocus>
									<img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
							    
							    </td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Est. End Date</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption">
							        							        							        
							        <input type="text" name="end_date"  maxlength="255" size="25" class="input" value="[tbs_check;if [var.FormMode]=Edit;then [blv.end_date;frm='dd/mm/yyyy';noerr]; else [sys.now;frm='dd/mm/yyyy']]" maxlength="255" size="10" class="input" >
									<a href="javascript:void(0)" onclick="gfPop.fPopCalendar([var.HTMLFormName].end_date);return false;" hidefocus>
									<img name="popcal" align="absMiddle" src="[var.ROOT_DIR]js/Calendar/pop/calbtn.gif" width="34" height="22" border="0" alt=""></a>
							        
							    </td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Project Location</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption"><input type="text" name="project_location" value="[blv.project_location;noerr]" maxlength="255" size="25" class="input"></td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Project Remarks</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption"><input type="text" name="project_remarks" value="[blv.project_remarks;noerr]" maxlength="255" size="25" class="input"></td>
							  </tr>
							  <tr>
							    <td class="fieldCaption" align="right">Project Owner</td>
							    <td class="fieldCaption">:</td>							    
							    <td class="fieldCaption"><input type="text" name="project_owner" value="[blv.project_owner;noerr]" maxlength="255" size="25" class="input"></td>
							  </tr>
							  <tr>
								<td class="fieldCaption" align="right">Customer</td>
								<td class="fieldCaption">:</td>
								<td class="fieldCaption">                                                                     
								   <select name="customer" class="input" id="tariffpack">
										  <option value="">-</option>
										  <option value="[customer.CUCODE]">[customer.CUNAME;block=option]</option>
										  <option>[tbs_check;if [blv.customer]!='';then [blv.customer] ;else '';selected;noerr]</option>
								   </select>
								</td>
							  </tr>
							  <tr>
							   <td class="fieldCaption"></td>
							   <td class="fieldCaption"></td>
							   <td align="right" class="fieldCaption">
							   	<table border="0" cellspacing="2" cellpadding="0">
							   		<tr>
							   			<td>[tbs_check;block=td;if [var.FormMode]=Add][tbs_check;block=td;if [var.USER_CANINSERT]=1]
							   			<input name="Action" type="submit" value="Add" class="button" onclick="return [tbs_check;if [var.Verification]=Enable;then 'VerifyForm(this.form)';else 'true']">
							   			</td>
							   			<td>[tbs_check;block=td;if [var.FormMode]=Edit][tbs_check;block=td;if [var.USER_CANUPDATE]=1]
							   			<input name="Action" type="submit" value="Update" class="button" onclick="return [tbs_check;if [var.Verification]=Enable;then 'VerifyForm(this.form)';else 'true']">
							   			</td>
							   			<td>[tbs_check;block=td;if [var.FormMode]=Edit][tbs_check;block=td;if [var.USER_CANDELETE]=1]
							   			<input name="Action" type="submit" value="Delete" class="button">							   			
							   			</td>
							   			<td>
							   			<input name="Action" type="submit" value="Cancel" class="button">
							   			</td>
							   		</tr>
							   	</table>
							    </td>
							  </tr>
						 </form>
						 </table>
						 <!-- FORM SECTION -->
								</td>
							</tr>
						</table>						
					</td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td>
			<br>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>
				<!--tr>
					<td class="footer2">Prototype Test - Web Application</td>
				</tr-->
			</table>
			</td>
		</tr>		
 	</table>
 </body>
 
 
 <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="[var.ROOT_DIR]js/Calendar/pop/ipopeng.htm" scrolling="no" frameborder="0" style="LEFT: -500px; POSITION: absolute; TOP: 0px; VISIBILITY: visible; Z-INDEX: 999"></iframe>

 <script>
 [var.InitFunction]
 

 </script>
 
 
</html>
